package com.huitone.gddw.service.impl.monitoring.environment;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.huitone.gddw.common.ComConstant;
import com.huitone.gddw.dao.monitoring.environment.ITomcatMonitorDao;
import com.huitone.gddw.service.dto.monitoring.environment.EnvDTO;
import com.huitone.gddw.service.monitoring.environment.ITomcatMonitorService;

/**
 * tomcat监控
 * @author wuluodan
 *
 */
@Service
public class TomcatMonitorService implements ITomcatMonitorService {

	@Autowired
	private ITomcatMonitorDao tomcatMonitorDao;
	
	@Override
	public List<EnvDTO> query() {
		Map<String, Object> params = new HashMap<>();
		params.put("objType", ComConstant.TOMCAT);
		params.put("itemName", ComConstant.INFO);
		return tomcatMonitorDao.selectPage(params);
	}

}
